package com.smdk.dsminio.entity;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 存储节点信息(DsminioServerNode)表实体类
 *
 * @author 神秘的凯
 * @since 2020-10-28 16:29:18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "DsminioServerNode信息表")
@TableName("dsminio_server_node")
public class DsminioServerNode extends Model<DsminioServerNode> {

    /**
     * 
     *服务器节点ID
     *
     */
    @ApiModelProperty(value = "服务器节点ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    
    
   /**
    * 
    *节点名称
    *
    */
    @ApiModelProperty(value = "节点名称")
    private String nodeName;
    
   /**
    * 
    *服务节点IP
    *
    */
    @ApiModelProperty(value = "服务节点IP")
    private String nodeIP;
    
   /**
    * 
    *描述
    *
    */
    @ApiModelProperty(value = "描述")
    private String nodeInfo;


    /**
     *
     *节点剩余内存大小
     *
     */
    @ApiModelProperty(value = "节点剩余内存大小")
    private Long nodeDiskSize;


   /**
    * 
    *节点状态
    *
    */
    @ApiModelProperty(value = "节点状态")
    private Integer nodeStatus;
    
   /**
    * 
    *时间
    *
    */
    @ApiModelProperty(value = "时间")
    private Date nodeTime;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }